﻿import java.util.Scanner;

public class HomeWork {

	public static void main(String[] args) {
		int[] scores = new int[4];
		int classNum = 3;
		double sum = 0.0;
		double avg = 0.0;
		Scanner input = new Scanner(System.in);
		for (int i = 1; i <= classNum; i++) {
			sum = 0.0;
			System.out.println("请输入第"+i+"个班级的成绩");
			for (int j = 0; j < scores.length; j++) {
				System.out.println("请输入第"+(j+1)+"个学员的成绩");
				scores[j] = input.nextInt();
				sum = sum + scores[j];
			}
			avg = sum / scores.length;
			System.out.println("第"+i+"个班级参赛学员的平均分是："+avg +"\n");
		}
	}
}